﻿@inject BaseWebElement _baseWebElement;
@{
    var Skype = _baseWebElement.GetWebElement(WebElementType.Skype)?.Value;
    var QQ = _baseWebElement.GetWebElement(WebElementType.QQ)?.Value;
    var Wechat = _baseWebElement.GetWebElement(WebElementType.Wechat)?.Img;
    var line = $"skype:{Skype}?chat";
    if (_baseWebElement.Currentlanguage.LanguageClass == "cn" || Skype.IsNullOrWhiteSpace())
    {
        if (QQ.IsNullOrWhiteSpace())
        {
            line = $"http://wpa.qq.com/msgrd?v=3&uin={QQ}&site=qq&menu=yes";
        }
        else
        {
            line = string.Empty;
        }
    }

}<div class="kefu hidden-xs">
     <ul class="list-unstyled">
         <!-- 中文在线联系是qq,英文版在线联系换成Skype -->
         @if (!line.IsNullOrWhiteSpace())
         {
             <li>
                 <a href="@line" class="kefu-lx"><i class="iconfont">&#xe60a;</i><P>@(_baseWebElement.QueryLanText("Consultation"))</P></a>
             </li>
         }
         @if (!Wechat.IsNullOrWhiteSpace())
         {
             <li><a href="javascript:;" class="kefu-wx" title="@(_baseWebElement.QueryLanText("Wechat"))" rel="nofollow"><i class="iconfont">&#xe613;</i><P>@(_baseWebElement.QueryLanText("Wechat"))</P><span class="kefu-weixin"><img src="@(Wechat)" width="140" height="140" alt=""></span></a></li>
         }
         <li><a href="javascript:;" class="kefu-top" rel="nofollow"><i class="iconfont">&#xe612;</i><P>@(_baseWebElement.QueryLanText("Totop"))</P></a></li>
     </ul>
</div>